package com.m3839.sdk.ym.util

import android.os.Handler
import android.os.Looper

object HandlerUtils {

    private val sMainHandler = Handler(Looper.getMainLooper())
    fun runOnMainThread(task: Runnable?) {
        sMainHandler.post(task!!)
    }

    fun runPostDelayed(task: Runnable?, millis: Long) {
        sMainHandler.postDelayed(task!!, millis)
    }
}